home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Debugging OpenDoc / Debugging Documentation / …Using Symantec Debugger < prev    next >
Encoding:
Text File  |  1995-11-09  |  1.4 KB  |  22 lines  |  [TEXT/ttxt]

  1. Debugging OpenDoc™ Part Editors With the Symantec Debugger
  2. 9 November 95
  3.  
  4. The basic procedure for debugging OpenDoc part shared libraries using the Symantec Debugger is:
  5.  
  6. (Assume your OpenDoc part project is named "MyPart.π".)
  7.  
  8. • Create an additional project named, e.g., Test, and add the "MyPart.π" file to the Test project.
  9.  
  10. • Bring the Test project up to date. This will bring "MyPart.π" up to date, creating a debuggable shared library named "MyPart.π.pef".
  11.  
  12. • Replace the "MyPart" part shared library in the OpenDoc "Editors" folder with the "MyPart.π.pef" version.
  13.  
  14. • Make sure that the "MyPart.π" project is open in the Symantec Project Manager.
  15.  
  16. • Double-click on the Symantec Debugger to launch it. When the Launch dialog comes up, Cancel it. Leave the debugger running.
  17.  
  18. • Double-click on MyPart part stationery or a MyPart document to open it.
  19.  
  20. • Hold down the control and option keys until the Symantec Debugger comes to the foreground. You may have to select Go with control-option held down several times before the source for your part comes up in the debugger window. Once it does, you can set breakpoints in any function in your part, examine the stack, etc.
  21.  
  22. • NOTE: In addition to the Symantec Debugger, you should also have MacsBug installed. The current version, included in Debuggers folder, is 6.5.2. It has excellent support for PowerPC debugging, including stack crawls.